package com.yanqu.road.entity.activity.horserun.cross;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_c_horse_run_user_join_rank")
public class CrossHorseRunZoneRoundRankData extends DataObject {

    @FieldTypeAnnotation(select = true,update = true,desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(select = true,update = true,desc = "分组id")
    private int groupId;
    @FieldTypeAnnotation(update = true,desc = "轮次id")
    private int roundId;
    @FieldTypeAnnotation(desc = "赛场")
    private int zone;
    @FieldTypeAnnotation(update = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(desc = "排行")
    private int rank;
    @FieldTypeAnnotation(desc = "锁定的属性值")
    private Map<Integer,Integer> lockAttr;
    @FieldTypeAnnotation(desc = "当时历史最高赚钱")
    private BigInteger historyEarn;
    @FieldTypeAnnotation(desc = "完成时间/s")
    private BigDecimal finishTime;

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }
    public void setGroupId(int groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getRoundId() {
        return roundId;
    }
    public void setRoundId(int roundId) {
        if (this.roundId != roundId) {
            this.roundId = roundId;
            setOp(DataStatus.Update);
        }
    }

    public int getZone() {
        return zone;
    }
    public void setZone(int zone) {
        if (this.zone != zone) {
            this.zone = zone;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getRank() {
        return rank;
    }
    public void setRank(int rank) {
        if (this.rank != rank) {
            this.rank = rank;
            setOp(DataStatus.Update);
        }
    }

    public java.util.Map<java.lang.Integer, java.lang.Integer> getLockAttr() {
        return lockAttr;
    }
    public void setLockAttr(java.util.Map<java.lang.Integer, java.lang.Integer> lockAttr) {
        if (null == lockAttr){
            return;
        }
        if (this.lockAttr == null || !this.lockAttr.equals(lockAttr)) {
            this.lockAttr = lockAttr;
            setOp(DataStatus.Update);
        }
    }

    public BigInteger getHistoryEarn() {
        return historyEarn;
    }
    public void setHistoryEarn(BigInteger historyEarn) {
        if (historyEarn == null){
            return;
        }
        if (this.historyEarn == null || !this.historyEarn.equals(historyEarn)) {
            this.historyEarn = historyEarn;
            setOp(DataStatus.Update);
        }
    }

    public BigDecimal getFinishTime() {
        return finishTime;
    }
    public void setFinishTime(BigDecimal finishTime) {
        if (finishTime == null){
            return;
        }
        if (this.finishTime == null || !this.finishTime.equals(finishTime)) {
            this.finishTime = finishTime;
            setOp(DataStatus.Update);
        }
    }

}
